package com.xyz.frame.api.dto;

/**
 * 返回状态Code
 * @author zsr
 * @date 2021/6/23 18:48
 */
public enum ResultCode {
    SUCCESS(20000,"成功")
    ,ERROR(20001,"失败")
    ,NOLOGIN(28004,"未登录");

    private ResultCode(Integer code, String name){
        this.code=code;
        this.name=name;
    }


    private Integer code;

    private String name;

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
